import Vue from 'vue'
import Router from 'vue-router'
import Login from "@/components/Login";
import Manager from "@/components/Manager";
import UpdatePwd from "@/components/user/UpdatePwd";
import ClassList from "@/components/student/ClassList";
import AddClass from "@/components/student/AddClass";
import StudentList from "@/components/student/StudentList";

Vue.use(Router)

export default new Router({
  routes: [
    {path: "/", component: Login},
    {
      path: "/manager", component: Manager,
      children:[
        {path:"/user/updatepwd",component:UpdatePwd},
        {path:"/student/ClassList",component:ClassList},
        {path:"/student/AddClass",component:AddClass},
        {path:"/student/StudentList",component:StudentList}
      ]
    }
  ]
})
